package com.xc.hotelmgr.datapusherali.service.mybatis.impl;

import com.xc.hotelmgr.datapusherali.mapper.OpGroupMapper;
import com.xc.hotelmgr.datapusherali.pojo.mybatis.OpGroup;
import com.xc.hotelmgr.datapusherali.service.mybatis.OpGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class OpGroupServiceImpl implements OpGroupService {

    @Autowired
    private OpGroupMapper opGroupMapper;

    @Override
    public List<OpGroup> listAll() {
        return opGroupMapper.listAll();
    }

    @Override
    public OpGroup getById(Integer id) {
        return opGroupMapper.getById(id);
    }

    @Override
    public int insert(OpGroup opGroup) {
        return opGroupMapper.insert(opGroup);
    }

    @Override
    public int insertIgnoreNull(OpGroup opGroup) {
        return opGroupMapper.insertIgnoreNull(opGroup);
    }

    @Override
    public int update(OpGroup opGroup) {
        return opGroupMapper.update(opGroup);
    }

    @Override
    public int updateIgnoreNull(OpGroup opGroup) {
        return opGroupMapper.updateIgnoreNull(opGroup);
    }

    @Override
    public int delete(OpGroup opGroup) {
        return opGroupMapper.delete(opGroup);
    }

}
